<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
    <style>
      .btn {
        position: relative;
        text-align: center;
        display: inline-block;
        vertical-align: middle;
        box-sizing: border-box;
        position: relative;
        cursor: pointer;
        color: #fd5050;
        font-size: 0;
        height: 50px;
        line-height: 50px;
        padding: 0 15px;
        margin-right: 18px;
        user-select: none;
      }
      .btn::before {
        border: 1px solid #fd5050;
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        border-radius: 4px;
      }
      .sup-up {
        position: absolute;
        color: #fd5050;
        -webkit-animation: supportUp 1s;
        animation: supportUp 1s;
        opacity: 1;
        font-size: 14px;
        left: 50%;
        top: -100%;
      }
      @keyframes supportUp {
        from {
          transform: scale(1);
          opacity: 1;
          top: -80%;
          left: 50%;
        }

        to {
          transform: scale(2);
          opacity: 0;
          top: -110%;
          left: 65%;
        }
      }
    </style>
  </head>
  <body style="margin: 50px">
    <div class="btn btn-like-prmy">
      <span
        style="display: inline-block; vertical-align: middle; font-size: 16px"
        >300</span
      >
    </div>
    <script>
      $(".btn-like-prmy").on("click", function (event) {
        $(this).prepend('<span class="sup-up" data-num="' + 1 + '">+1</span>');
        setTimeout(() => {
          $('.sup-up[data-num="' + 1 + '"]').remove();
        }, 1000);
      });
    </script>
  </body>
</html>
